<?php /* Smarty version 3.1.24, created on 2015-09-29 16:14:01
         compiled from "/lanmp/www/eggmstest/public_html/themes/default/tvd/tvd.dwt" */ ?>
<?php
/*%%SmartyHeaderCode:1416434189560a48498875e3_58621727%%*/
if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '1da2e138bc063f1feaef7688a50848eb5d33dc3b' => 
    array (
      0 => '/lanmp/www/eggmstest/public_html/themes/default/tvd/tvd.dwt',
      1 => 1442366081,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '1416434189560a48498875e3_58621727',
  'variables' => 
  array (
    'keywords' => 0,
    'description' => 0,
    'page_title' => 0,
    '__PUC__' => 0,
    'tvdInfo' => 0,
    'id' => 0,
    'keyList' => 0,
    'item' => 0,
    'tvdList' => 0,
    'info' => 0,
    'commentList' => 0,
    'goodsList' => 0,
  ),
  'has_nocache_code' => false,
  'version' => '3.1.24',
  'unifunc' => 'content_560a4849962748_02957693',
),false);
/*/%%SmartyHeaderCode%%*/
if ($_valid && !is_callable('content_560a4849962748_02957693')) {
function content_560a4849962748_02957693 ($_smarty_tpl) {

$_smarty_tpl->properties['nocache_hash'] = '1416434189560a48498875e3_58621727';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta property="wb:webmaster" content="3a8fecf42d5cb1bd" />
    <meta property="qc:admins" content="271532754446577536375" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="Keywords" content="<?php echo $_smarty_tpl->tpl_vars['keywords']->value;?>
" />
    <meta name="Description" content="<?php echo $_smarty_tpl->tpl_vars['description']->value;?>
" />
    <title><?php echo $_smarty_tpl->tpl_vars['page_title']->value;?>
</title>
    <link rel="stylesheet" href="<?php echo $_smarty_tpl->tpl_vars['__PUC__']->value;?>
css/my_style.css" />
    <link rel="stylesheet" href="<?php echo $_smarty_tpl->tpl_vars['__PUC__']->value;?>
css/common.css" />
    <link rel="stylesheet" href="<?php echo $_smarty_tpl->tpl_vars['__PUC__']->value;?>
css/tvd/tvd.css" />
    <?php echo '<script'; ?>
 type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['__PUC__']->value;?>
js/jquery.js" ><?php echo '</script'; ?>
>
    <?php echo '<script'; ?>
 type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['__PUC__']->value;?>
js/jquery.json.js" ><?php echo '</script'; ?>
>
    <base target="_blank" />
</head>
<body class="info-body">

<?php echo $_smarty_tpl->getSubTemplate ('common/page_header.lbi', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0);
?>

<div id="tvd-info">
    <div class="left-info">
        <blockquote class="quote">
            <?php echo $_smarty_tpl->tpl_vars['tvdInfo']->value['content'];?>

        </blockquote>
        <div class="praise-share">
            <div class="left">
                <div class="iconlike <?php if ($_smarty_tpl->tpl_vars['tvdInfo']->value['iscollect']) {?>collect<?php } else { ?>uncollect<?php }?>" onclick="javascript:collect(<?php echo $_smarty_tpl->tpl_vars['id']->value;?>
);"></div>
                <div class="click-num"><?php echo $_smarty_tpl->tpl_vars['tvdInfo']->value['praise'];?>
</div>
                <a class="icon-share" href="#comt-href" target="_self"></a>
                <div class="share-num"><?php echo $_smarty_tpl->tpl_vars['tvdInfo']->value['share'];?>
</div>
            </div>
            <div id="bdsharebuttonbox" class="right">
                <span class="text">分享：</span>
                <div class="bdsharebuttonbox" data-tag="share_1" onclick="setShare(<?php echo $_smarty_tpl->tpl_vars['id']->value;?>
);">
                    <a class="bds_weixin" data-cmd="weixin"></a>
                    <a class="bds_tsina" data-cmd="tsina"></a>
                    <a class="bds_sqq" data-cmd="qzone"></a>
                    <a class="bds_renren" data-cmd="renren"></a>
                    <a class="bds_douban" data-cmd="douban"></a>
                </div>
            </div>
            <div class="key-list">
                <?php if (!empty($_smarty_tpl->tpl_vars['keyList']->value)) {?>
                <?php
$_from = $_smarty_tpl->tpl_vars['keyList']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
$_smarty_tpl->tpl_vars['item']->_loop = false;
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
foreach ($_from as $_smarty_tpl->tpl_vars['key']->value => $_smarty_tpl->tpl_vars['item']->value) {
$_smarty_tpl->tpl_vars['item']->_loop = true;
$foreach_item_Sav = $_smarty_tpl->tpl_vars['item'];
?>
                <a href="tvd_list.php?q=<?php echo $_smarty_tpl->tpl_vars['item']->value;?>
"><?php echo $_smarty_tpl->tpl_vars['item']->value;?>
</a>
                <?php
$_smarty_tpl->tpl_vars['item'] = $foreach_item_Sav;
}
?>
                <?php }?>
            </div>
        </div>
        <div class="recom-article">
            <div class="top">
                <span class="text">推荐文章</span>
                <a class="more" href="tvd_list.php" title="更多">MORE></a>
            </div>
            <div class="article">
                <?php
$_from = $_smarty_tpl->tpl_vars['tvdList']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
$_smarty_tpl->tpl_vars['item']->_loop = false;
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
foreach ($_from as $_smarty_tpl->tpl_vars['key']->value => $_smarty_tpl->tpl_vars['item']->value) {
$_smarty_tpl->tpl_vars['item']->_loop = true;
$foreach_item_Sav = $_smarty_tpl->tpl_vars['item'];
?>
                <a class="box" href="<?php echo $_smarty_tpl->tpl_vars['item']->value['url'];?>
" title="<?php echo $_smarty_tpl->tpl_vars['item']->value['title'];?>
">
                    <img src="<?php echo $_smarty_tpl->tpl_vars['item']->value['list_img'];?>
" alt="<?php echo $_smarty_tpl->tpl_vars['item']->value['title'];?>
">
                    <span><?php echo $_smarty_tpl->tpl_vars['item']->value['title'];?>
</span>
                </a>
                <?php
$_smarty_tpl->tpl_vars['item'] = $foreach_item_Sav;
}
?>
            </div>
            <div class="recom" id='comt-href' name="comt-href">
                <div class="com-num">文章评论（<?php echo $_smarty_tpl->tpl_vars['tvdInfo']->value['commentNum'];?>
）</div>
                <img class="portrait" src="<?php echo $_smarty_tpl->tpl_vars['info']->value['head'];?>
" alt="用户头像">
                <textarea id="comment-text" class="content" placeholder="想对这篇文章说点什么吗？"></textarea>
                <div class="btn" onclick="setComment('<?php echo $_smarty_tpl->tpl_vars['id']->value;?>
', $('#comment-text').val(), '')">评论</div>
            </div>
            <div class="comment-list">
                <?php if (!empty($_smarty_tpl->tpl_vars['commentList']->value)) {?>
                    <?php echo $_smarty_tpl->getSubTemplate ('tvd/comtList.lbi', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0);
?>

                <?php } else { ?>
                    <div class="no-com">还没有任何评论，赶快抢沙发~！</div>
                <?php }?>
                <div class="allCom btn" onclick="getComment()">查看所有评论</div>
            </div>
            <div class="at-user-comt none">
                <div class="mask"></div>
                <div class="box">
                    <span class="name">回复：@<span class="at-user"></span></span>
                    <textarea name="at-content" id="at-comment-text" placeholder="想对这篇文章说点什么吗？"></textarea>
                    <div class="btn" onclick="atSetComment('<?php echo $_smarty_tpl->tpl_vars['id']->value;?>
', $('#at-comment-text').val())">评论</div>
                    <div class="btn btn2" onclick="$('.at-user-comt').hide();">取消</div>
                </div>
            </div>
        </div>
    </div>
    <?php if (!empty($_smarty_tpl->tpl_vars['goodsList']->value)) {?>
    <div class="right-goods">
        <div class="title">本教程所用画材</div>
        <?php
$_from = $_smarty_tpl->tpl_vars['goodsList']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
$_smarty_tpl->tpl_vars['item']->_loop = false;
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
foreach ($_from as $_smarty_tpl->tpl_vars['key']->value => $_smarty_tpl->tpl_vars['item']->value) {
$_smarty_tpl->tpl_vars['item']->_loop = true;
$foreach_item_Sav = $_smarty_tpl->tpl_vars['item'];
?>
        <div class="box">
            <a class="img" href="<?php echo $_smarty_tpl->tpl_vars['item']->value['url'];?>
" title="<?php echo $_smarty_tpl->tpl_vars['item']->value['goods_name'];?>
">
                <img src="<?php echo $_smarty_tpl->tpl_vars['item']->value['goods_thumb'];?>
" alt="<?php echo $_smarty_tpl->tpl_vars['item']->value['goods_name'];?>
">
                <div class="name"><?php echo $_smarty_tpl->tpl_vars['item']->value['goods_name'];?>
</div>
            </a>
            <div class="bottom">
                <span class="price">￥<?php echo $_smarty_tpl->tpl_vars['item']->value['shop_price'];?>
</span>
                <span class="com" onclick="addToCart('<?php echo $_smarty_tpl->tpl_vars['item']->value['goods_id'];?>
');">加入购物车</span>
            </div>
        </div>
        <?php
$_smarty_tpl->tpl_vars['item'] = $foreach_item_Sav;
}
?>
    </div>
    <?php }?>
</div>
<?php echo $_smarty_tpl->getSubTemplate ('common/follow_right.lbi', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0);
?>

<?php echo $_smarty_tpl->getSubTemplate ('common/page_footer.lbi', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0);
?>


<?php echo '<script'; ?>
 type="text/javascript">
    var bdText = '<?php echo $_smarty_tpl->tpl_vars['tvdInfo']->value['title'];?>
';
    var bdDesc = '<?php echo $_smarty_tpl->tpl_vars['tvdInfo']->value['description'];?>
';
    var bdUrl = 'http://<?php echo $_SERVER['SERVER_NAME'];
echo $_SERVER['REQUEST_URI'];?>
';
    var bdPic = 'http://<?php echo $_SERVER['SERVER_NAME'];?>
/<?php echo $_smarty_tpl->tpl_vars['tvdInfo']->value['list_img'];?>
';
    var tvdId = '<?php echo $_smarty_tpl->tpl_vars['id']->value;?>
';
<?php echo '</script'; ?>
>

<?php echo '<script'; ?>
 type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['__PUC__']->value;?>
js/tvd/tvd.js"><?php echo '</script'; ?>
>
<?php echo '<script'; ?>
 type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['__PUC__']->value;?>
js/public.js"><?php echo '</script'; ?>
>
<?php echo '<script'; ?>
 type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['__PUC__']->value;?>
js/ajax_loading.js"><?php echo '</script'; ?>
>
</body>
</html><?php }
}
?>